package mil.af.amc.adpetracker.model.comparators;

import mil.af.amc.adpetracker.model.EquipmentItem;

import java.util.Comparator;

/**
 * Compares the models of two equipment items
 *
 * @author TSgt Jason Ferguson
 */

public class EquipmentItemModelComparator implements Comparator<EquipmentItem> {


    public int compare(EquipmentItem o1, EquipmentItem o2) {

        return o1.getItemModel().getName().toUpperCase().compareTo(o2.getItemModel().getName().toUpperCase());
    }
}
